/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sunsite.dao;

import org.springframework.dao.DataAccessException;
import sunsite.po.Visit;

/**
 *
 * @author mg
 */
public interface VisitDao {
    /**
     * 用户访问时添加记录到visit中
     * @param visit 待新建的visit对象
     * @return 
     * @throws org.springframework.dao.DataAccessException
     */
    void createVisit(Visit visit) throws DataAccessException;

    /**
     * 更新visit记录
     * @param visit 待更新的visit对象
     * @return 
     * @throws org.springframework.dao.DataAccessException
     */
    void updateVisit(Visit visit) throws DataAccessException;
}
